%% ɸѡ
function row=filtrate(option,pop1,pop2,edit1,edit2,rdata,flitem)

sizeofrdata=size(rdata);

switch pop1
	case 1
        row1=1:sizeofrdata(1);
	case 2
        row1=find(rdata(:,flitem)==edit1);
	case 3
        row1=find(rdata(:,flitem)>edit1);
	case 4
        row1=find(rdata(:,flitem)<edit1);
	case 5
        row1=find(rdata(:,flitem)>=edit1);
	case 6
        row1=find(rdata(:,flitem)<=edit1);
end

switch pop2
	case 1
        row2=row1;
	case 2
        row2=find(rdata(:,flitem)==edit2);
	case 3
        row2=find(rdata(:,flitem)>edit2);
	case 4
        row2=find(rdata(:,flitem)<edit2);
	case 5
        row2=find(rdata(:,flitem)>=edit2);
	case 6
        row2=find(rdata(:,flitem)<=edit2);
end

switch option
    case 1
        row=intersect(row1,row2);
    case 2
        row=union(row1,row2);
end


%%